package com.bw.common.mvi

import com.google.gson.Gson
import okhttp3.MediaType
import okhttp3.RequestBody


open class BaseRespository {

    fun createBody(map : Map<String,Any>):RequestBody{
        val str = Gson().toJson(map)
        return RequestBody.create(MediaType.parse("application/json;charset=UTF-8"),str)
    }

}